/** When your routing table is too long, you can split it into small modules**/

import Layout from "@/views/layout/Layout";

export default {
  path: "/systemManage",
  component: Layout,
  alwaysShow: true,
  name: "系统管理",
  redirect: "noredirect",
  meta: {
    title: "系统管理",
    icon: "component",
    resources: "systemManage"
  },
  children: [
    {
      path: "user",
      component: () => import("@/views/system-manage/user"),
      name: "user",
      meta: {
        title: "用户管理",
        icon: "my-user",
        noCache: true,
        resources: "user"
      }
    },
    {
      path: "role",
      component: () => import("@/views/system-manage/role"),
      name: "role-c",
      meta: {
        title: "角色列表",
        icon: "my-role",
        noCache: true,
        resources: "role"
      }
    },
    {
      path: "roleSetting/:id(\\d+)",
      component: () => import("@/views/system-manage/roleSetting"),
      name: "roleSetting",
      meta: {
        title: "权限设置",
        icon: "my-role",
        noCache: true,
        resources: "roleSetting"
      },
      hidden: true
    },
    {
      path: "menu",
      component: () => import("@/views/system-manage/menu"),
      name: "菜单",
      meta: {
        title: "菜单列表",
        icon: "my-sysmenu",
        noCache: true,
        resources: "menu"
      }
    },
    {
      path: "log",
      component: () => import("@/views/system-manage/log"),
      name: "log",
      meta: {
        title: "系统日志",
        icon: "my-sysmenu",
        noCache: true,
        resources: "log"
      }
    },
    {
      path: "chat",
      component: () => import("@/views/system-manage/chat"),
      name: "chat",
      meta: {
        title: "聊天室",
        icon: "my-sysmenu",
        noCache: true,
        resources: "chat"
      }
    },
    {
      path: "auth",
      component: () => import("@/views/system-manage/authentication"),
      name: "auth",
      meta: {
        title: "权限列表",
        icon: "my-sysmenu",
        noCache: true,
        resources: "auth"
      }
    },
    {
      path: "admin",
      component: () => import("@/views/system-manage/admin"),
      name: "admin",
      meta: {
        title: "管理员列表",
        icon: "my-sysmenu",
        noCache: true,
        resources: "admin"
      }
    }
  ]
};
